//通过借用构造函数实现继承

var A = function (name) {
    this.name = name;
}

var B = function () {
    A.apply(this,arguments);
}
B.prototype.getName = function () {
    return this.name;
}

var b = new B('sven');

console.log(b.getName());


//借用 Array.prototype.push

(function () {
    Array.prototype.push.call(arguments,3);
    console.log(arguments);
})(1,2);